﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

namespace GameWP
{
    public class DBSound : Database
    {
#region Properties
        public Song _menuStart, _gamePlay;
        public SoundEffect _newScreen, _select, _explosion;
        public List<SoundEffect> _luffySoundEffect;
#endregion

#region Initilation
        public DBSound(ContentManager content, GraphicsDeviceManager graphic)
        {
            _content = content;
            _graphic = graphic;

            //load
            _menuStart = _content.Load<Song>("Sound/MenuStart");
            _gamePlay = _content.Load<Song>("Sound/GamePlay");
            _newScreen = _content.Load<SoundEffect>("Sound/NewScreen");
            _select = _content.Load<SoundEffect>("Sound/Select");
            _explosion = _content.Load<SoundEffect>("Sound/Explosion");

            _luffySoundEffect = new List<SoundEffect>();            
            for (int i = 0; i < 6; i++)
                _luffySoundEffect.Add(_content.Load<SoundEffect>("Sound/Luffy/skill_" + i.ToString("00")));
            _luffySoundEffect.Add(_content.Load<SoundEffect>("Sound/Luffy/Dead"));
            _luffySoundEffect.Add(_content.Load<SoundEffect>("Sound/Luffy/NormalAttack"));            
            
        }
#endregion
    }
}

